﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    [MappingTable("ProjectPayBackView")]
    public class ProjectPayBackInfoView : ProjectPayBackInfo
    {
        [DataField("ProjectName")]
        public string ProjectName { get; set; }
    }

    /// <summary>
    /// ProjectPayBack:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("ProjectPayBack")]
    public partial class ProjectPayBackInfo
    {
        public ProjectPayBackInfo()
        { }
        #region Model
        private int _id;
        private string _contractid;
        private string _projectid;
        private DateTime? _applytime;
        private decimal? _applyamount;
        private string _applycompany;
        private string _designstage;
        private string _precent;
        private string _calcmethoddescription;
        private string _progressstate;


        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractId")]
        public string ContractId
        {
            set { _contractid = value; }
            get { return _contractid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ApplyTime")]
        public DateTime? ApplyTime
        {
            set { _applytime = value; }
            get { return _applytime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ApplyAmount")]
        public decimal? ApplyAmount
        {
            set { _applyamount = value; }
            get { return _applyamount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ApplyCompany")]
        public string ApplyCompany
        {
            set { _applycompany = value; }
            get { return _applycompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("DesignStage")]
        public string DesignStage
        {
            set { _designstage = value; }
            get { return _designstage; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Precent")]
        public string Precent
        {
            set { _precent = value; }
            get { return _precent; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CalcMethodDescription")]
        public string CalcMethodDescription
        {
            set { _calcmethoddescription = value; }
            get { return _calcmethoddescription; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProgressState")]
        public string ProgressState
        {
            set { _progressstate = value; }
            get { return _progressstate; }
        }

        [DataField("InternalType")]
        public int InternalType { get; set; }
        #endregion Model

    }
}

